#include "be_net_system.h"
#include <SDL/SDL_net.h>

BeNetSystem::BeNetSystem()
{
	const int error=SDLNet_Init();
	m_logDebug << "SDLNet_Init " << getErrorString() << "\n";
}

BeNetSystem::~BeNetSystem()
{
	SDLNet_Quit();
	m_logDebug << "SDLNet_Quit" << "\n";
}

const std::string& BeNetSystem::getErrorString()
{
	return m_errorString=SDLNet_GetError();
}
